package com.dajingling.bean;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

//多方要有一方的对象
public class Bills {
    @Override
    public String toString() {
        return "Bills{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", bilitime=" + bilitime +
                ", typeid=" + typeid +
                ", price=" + price +
                ", explains='" + explains + '\'' +
                '}';
    }

    private Billtype billtype;

    public Billtype getBilltype() {
        return billtype;
    }

    public void setBilltype(Billtype billtype) {
        this.billtype = billtype;
    }

    private Integer id;

    private String title;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date bilitime;

    private Integer typeid;

    private Double price;

    private String explains;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public Date getBilitime() {
        return bilitime;
    }

    public void setBilitime(Date bilitime) {
        this.bilitime = bilitime;
    }

    public Integer getTypeid() {
        return typeid;
    }

    public void setTypeid(Integer typeid) {
        this.typeid = typeid;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getExplains() {
        return explains;
    }

    public Bills() {
    }

    public Bills(Integer typeid, String title, Date bilitime, Double price, String explains) {
        this.title = title;
        this.bilitime = bilitime;
        this.typeid = typeid;
        this.price = price;
        this.explains = explains;
    }

    public Bills(Integer id,Integer typeid, String title, Date bilitime, Double price, String explains) {
        this.id = id;
        this.title = title;
        this.bilitime = bilitime;
        this.typeid = typeid;
        this.price = price;
        this.explains = explains;
    }

    public void setExplains(String explains) {
        this.explains = explains == null ? null : explains.trim();
    }
}